package com.iotsz.device.feign;

import com.iotsz.user.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-service")
public interface UserFeignService {

    @GetMapping("/user")
    User getDeviceUser(@RequestParam("id") Integer id);
}
